<?php
$this->headTitle('Danh sách partner', 'append');
if(!$this->role){
    $link=null;?>
    <script>
        $(document).ready(function(){
            $(".click").click(function(){
                alert("Xin lỗi, bạn không có quyền vào trong");
            });
            
        });
    </script>
<?php }
else{
    if(in_array('game',$this->role)){
        $link='admin/game/index/partnerId/';
    }
    else if(in_array('user',$this->role)){
        $link='admin/user/index/partnerId/';
    }
    else{
        $link='admin/role/index/partnerId/';
    }
}


?>
<div class="grid">
    <div class="breadcrumbs">
        <a class="item-1" href="/index">Trang chủ TOOL</a> › 
        <span class="blue">Danh sách partner</span>
        <div class="clear-both"></div>
    </div>
  
    <div class="clear-both"></div>
    <div class="content-listgame" style="border: 0!important;margin: 0 auto!important;">
        <ul class="gameList">
            <?php
                $stt = 1;
                foreach($this->partnerList as $partner){
            ?>
                <li class="click">
                    <a class="img loading" href="<?php if(!$link){echo "";}else{echo $link.$partner['partnerId'];} ?>" title="<?php echo $partner['partnerName'];?>"><img src="<?php echo $partner['partnerImg'];?>" title="<?php echo $partner['partnerName'];?>" alt="<?php echo $partner['partnerName'];?>"/></a>
                    <a class="tit loading" href="<?php if(!$link){echo "";}else{echo $link.$partner['partnerId'];};?>" title="<?php echo $partner['partnerName'];?>"><?php echo $partner['partnerName'].'<br />('.$partner['partnerId'].')';?></a>
                </li>
            <?php
                 }
            ?>
        </ul>
        <div class="clear-both"></div>
    </div>
    <div class="clear-both"></div>
</div>
